import DynamicForm from './DynamicForm.vue'
import DynamicSelect from './DynamicSelect.vue'
import DynamicInput from './DynamicInput.vue'
import DynamicButton from './DynamicButton.vue'
import DynamicDatePicker from './DynamicDatePicker.vue'
import DynamicRadioGroup from './DynamicRadioGroup.vue'
import DynamicSwitch from './DynamicSwitch.vue'

const components={
  DForm:DynamicForm,
  DSelect:DynamicSelect,
  DInput:DynamicInput,
  DButton:DynamicButton,
  DRadioGroup:DynamicRadioGroup,
  DDatePicker:DynamicDatePicker,
  DSwitch:DynamicSwitch,
}

export const install=(app)=>{
  for (let componentsKey in components) {
    app.component(componentsKey,components[componentsKey])
  }
}
